package com.qf.model;

import java.util.List;

public class PageBean<T> {
    private Integer curPage;        //当前页
    private Integer pageSize;       //每页条数
    private Integer count;          //总记录数
    private Integer totalPage;      //总页数
    private List<T> data;       //数据

    public PageBean() {
    }

    public PageBean(Integer curPage, Integer pageSize, Integer count, Integer totalPage, List<T> data) {
        this.curPage = curPage;
        this.pageSize = pageSize;
        this.count = count;
        this.totalPage = totalPage;
        this.data = data;
    }

    public PageBean(Integer curPage, Integer pageSize) {
        this.curPage = curPage;
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "curPage=" + curPage +
                ", pageSize=" + pageSize +
                ", count=" + count +
                ", totalPage=" + totalPage +
                ", data=" + data +
                '}';
    }

    public Integer getCurPage() {
        return curPage;
    }

    public void setCurPage(Integer curPage) {
        this.curPage = curPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
